QBasic has encountered a statement that is not allowed in module-level code. For example, EXIT SUB, EXIT FUNCTION, or EXIT DEF statements are not allowed in module-level code.